package com.addplus.townmall.server.api.model.town.param;

import com.addplus.townmall.server.api.model.town.OrderItems;
import com.addplus.townmall.server.api.model.town.expand.ShopParticipateExpand;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 类名: OrderShopItemsParam
 *
 * @author zhangjiehang
 * @version V1.0
 * @date 2018/9/30 下午5:46
 * @description 类描述: 商品订单返回信息实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class OrderShopItemsParam extends OrderItems implements Serializable {
    private static final long serialVersionUID = -230968817033581640L;
    /**
     * 商品编号
     */
    private String shopCustomizeCode;

    /**
     *销售状态(0:出售中 1:已售罄 2:仓库中)
     */
    private Integer saleStatus;

    /**
     * 是否参数会员优惠
     */
    private Integer isDiscount;
    /**
     * 商品邮递方式(0:包邮 1:统一邮费 2:模板)
     */
    @TableField("fright_type")
    private Integer frightType;
    /**
     * 商品运费模板主键id
     */
    @TableField("shop_fright_id")
    private Integer shopFrightId;
    /**
     * 库存
     */
    private Integer stock;

    /**
     * 上架状态(0:下架 1:上架)
     */
    private Integer onlineStatus;

    /**
     * 商品参与活动类型(1:秒杀 2:优选 3:折扣)
     */
    private Integer shopActiveType;

    /**
     * 当前商品参与活动主键id
     */
    private Integer shopObjId;

    /**
     * 活动状态(0:未开始 1:进行中 2:已过期)
     */
    private Integer status;

    /**
     * 参与活动信息实体类
     */
    private ShopParticipateExpand shopParticipateExpand;

}
